-- GENERATED SPELL FOR [Lieutenant Valorcall] --


function spell0_2612(pUnit, Event) --@Divine Shield,Self--
pUnit:FullCastSpellOnTarget(642,pUnit)
pUnit:RegisterEvent('Sorts_2612', 12265, 1)
end

function spell1_2612(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(3472,pUnit)
pUnit:RegisterEvent('Sorts_2612', 2500, 1)
end

function spell2_2612(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(13953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2612', 596, 1)
end

function Sorts_2612(pUnit, Event)
local choix_sorts_2612 = math.random(0, 2)
if choix_sorts_2612 == 0 then
pUnit:RegisterEvent('spell0_2612', 1, 1)
end
if choix_sorts_2612 == 1 then
pUnit:RegisterEvent('spell1_2612', 1, 1)
end
if choix_sorts_2612 == 2 then
pUnit:RegisterEvent('spell2_2612', 1, 1)
end
end

function mob2612_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2612', math.random(1500, 3000), 1)
end

function mob2612_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2612_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2612_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2612, 1, 'mob2612_Action')
RegisterUnitEvent(2612, 2, 'mob2612_Leave')
RegisterUnitEvent(2612, 3, 'mob2612_Kill')
RegisterUnitEvent(2612, 4, 'mob2612_Die')
